package edu.spec.wyn.week08.book.unit4.one;

public class Circle {
    private double Radius;

    public Circle(){
        this.Radius=0;
    }
    public Circle(double r){
        this.Radius=r;
    }
    public double getArea(){
        double r=this.Radius;
        double area=r*r*3.14;
        return area;
    }
    public double getPerimeter(){
        double perimeter=Radius*2*3.14;
        return perimeter;
    }
    public void show(){
        System.out.println("圆的半径是："+Radius);
        System.out.println("圆的周长是："+getPerimeter());
        System.out.println("圆的面积是："+getArea());
    }

    public void setRadius(double Radius) {
        this.Radius = Radius;
    }
}
